<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>ARWrapper: include/ARWrapper/VideoSource.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ARWrapper
   </div>
   <div id="projectbrief">Provides a C++ wrapper around ARToolKit and exposes a C and JNI API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_07a0c5f21beb9b236aa4df3f5a3f68d1.html">ARWrapper</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">VideoSource.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_video_source_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *  VideoSource.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  ARToolKit5</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  This file is part of ARToolKit.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  ARToolKit is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *  it under the terms of the GNU Lesser General Public License as published by</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  (at your option) any later version.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *  ARToolKit is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *  You should have received a copy of the GNU Lesser General Public License</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *  along with ARToolKit.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  As a special exception, the copyright holders of this library give you</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  permission to link this library with independent modules to produce an</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  executable, regardless of the license terms of these independent modules, and to</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  copy and distribute the resulting executable under terms of your choice,</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  provided that you also meet, for each linked independent module, the terms and</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  conditions of the license of that module. An independent module is a module</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  which is neither derived from nor based on this library. If you modify this</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  library, you may extend this exception to your version of the library, but you</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *  are not obligated to do so. If you do not wish to do so, delete this exception</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *  statement from your version.</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *  Copyright 2015 Daqri, LLC.</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> *  Copyright 2010-2015 ARToolworks, Inc.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *  Author(s): Julian Looser, Philip Lamb</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifndef VIDEOSOURCE_H</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define VIDEOSOURCE_H</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_platform_8h.html">Platform.h</a>&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;AR/ar.h&gt;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;AR/video.h&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_image_8h.html">ARWrapper/Image.h</a>&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#ifndef _WINRT</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  if TARGET_PLATFORM_ANDROID || TARGET_PLATFORM_IOS</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#    include &lt;AR/gsub_es.h&gt;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#  else</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#    include &lt;AR/gsub_lite.h&gt;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">  #endif</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="class_video_source.html">   63</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_video_source.html" title="Base class for different video source implementations.">VideoSource</a> {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128">   67</a></span>&#160;        <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a1a05a7307aa94e90cbc1c6dd83fd9be6">   68</a></span>&#160;                <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a1a05a7307aa94e90cbc1c6dd83fd9be6" title="Device is closed.">DEVICE_CLOSED</a>,                                  </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a7142f24394de522e832b3c5d55b67b55">   69</a></span>&#160;                <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a7142f24394de522e832b3c5d55b67b55" title="Device is open.">DEVICE_OPEN</a>,                                    </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a6ebccb3d4f4e4784fa1dc3ad977689b8">   70</a></span>&#160;        <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a6ebccb3d4f4e4784fa1dc3ad977689b8" title="Device is moving from open to running.">DEVICE_GETTING_READY</a>,           </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a0dd9ac61b3c501ded6a5429247ceccf2">   71</a></span>&#160;                <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128a0dd9ac61b3c501ded6a5429247ceccf2" title="Device is open and able to be queried.">DEVICE_RUNNING</a>                                  </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        } <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128">DeviceState</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    </div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="class_video_source.html#acd88d68c8d2ced676444f5d86a5ee767">   74</a></span>&#160;        <a class="code" href="class_video_source.html#a2755c0fcd758d5407c61e4599198c128">DeviceState</a> <a class="code" href="class_video_source.html#acd88d68c8d2ced676444f5d86a5ee767" title="Current state of the video device.">deviceState</a>;                        </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_video_source.html#aeb1eb6e4e78fbd3492590e7c8368aa38">   76</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_video_source.html#aeb1eb6e4e78fbd3492590e7c8368aa38" title="Camera parameter filename.">cameraParam</a>;                                      </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="class_video_source.html#ae0433f4c210a67765b87dc2104e6ccaa">   77</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_video_source.html#ae0433f4c210a67765b87dc2104e6ccaa">cameraParamBuffer</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="class_video_source.html#a69e1da21f24a6895d19d9c81b8d7e973">   78</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_video_source.html#a69e1da21f24a6895d19d9c81b8d7e973">cameraParamBufferLen</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="class_video_source.html#a2a7669858f6866ca205a46b7b8505be8">   79</a></span>&#160;        ARParamLT *<a class="code" href="class_video_source.html#a2a7669858f6866ca205a46b7b8505be8" title="Camera paramaters.">cparamLT</a>;                            </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="class_video_source.html#a6beb28d92c2148ee3fb7d20255158fbf">   81</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_video_source.html#a6beb28d92c2148ee3fb7d20255158fbf" title="Video configuration string.">videoConfiguration</a>;                       </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="class_video_source.html#a1ae59fc53c9203fe479f1f8c588f71a2">   83</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#a1ae59fc53c9203fe479f1f8c588f71a2" title="Width of the video frame in pixels.">videoWidth</a>;                                         </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_video_source.html#a3a921eb207b05a377e84a1f425ab5f6a">   84</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#a3a921eb207b05a377e84a1f425ab5f6a" title="Height of the video frame in pixels.">videoHeight</a>;                                        </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="class_video_source.html#a827806681429582927ac13c6f373e1ca">   86</a></span>&#160;        AR_PIXEL_FORMAT <a class="code" href="class_video_source.html#a827806681429582927ac13c6f373e1ca" title="Pixel format from ARToolKit enumeration.">pixelFormat</a>;            </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#if defined(HAVE_ARM_NEON) || defined(HAVE_ARM64_NEON)</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="class_video_source.html#add3b6650477bfd8686330f2a7bf9b421">   88</a></span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#add3b6650477bfd8686330f2a7bf9b421">m_fastPath</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#ifndef _WINRT</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_video_source.html#acf0477157bda240c414ef6b84f9ccccf">   91</a></span>&#160;<span class="preprocessor"></span>        GLenum <a class="code" href="class_video_source.html#acf0477157bda240c414ef6b84f9ccccf">glPixIntFormat</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="class_video_source.html#a58cdec9f9dcc76c3107703e017ce83fc">   92</a></span>&#160;    GLenum <a class="code" href="class_video_source.html#a58cdec9f9dcc76c3107703e017ce83fc">glPixFormat</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="class_video_source.html#a637d538226b938bd7549b38d1951f118">   93</a></span>&#160;    GLenum <a class="code" href="class_video_source.html#a637d538226b938bd7549b38d1951f118">glPixType</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_video_source.html#aba22b2ecb8dac722d61133e05b91de67">   96</a></span>&#160;    ARUint8 *<a class="code" href="class_video_source.html#aba22b2ecb8dac722d61133e05b91de67" title="Pointer to latest frame. Set by concrete subclass to point to frame data.">frameBuffer</a>;               </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_video_source.html#a9f660cd0cb8a2a881e89a24ea7d41b6e">   97</a></span>&#160;    ARUint8 *<a class="code" href="class_video_source.html#a9f660cd0cb8a2a881e89a24ea7d41b6e" title="For bi-planar formats, pointer to plane 2 of latest frame. Set by concrete subclass to point to frame...">frameBuffer2</a>;              </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_video_source.html#ad4cd6f08ee44690a778a2b3aaefef380">   98</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#ad4cd6f08ee44690a778a2b3aaefef380" title="Latest framestamp. Incremented in the concrete subclass when a new frame arrives.">frameStamp</a>;                                         </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_video_source.html#a2b4216eef3515ec23ee509158fa4faf3">  100</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#a2b4216eef3515ec23ee509158fa4faf3">m_error</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_video_source.html#a051c1e0fca7fdb2cf2a3637a4dfe791c">setError</a>(<span class="keywordtype">int</span> error);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="class_video_source.html#a13188e20ed4e4c99e39cd0faf82bad2e" title="The constructor is not public because instances are created using a factory method.">VideoSource</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keyword">static</span> <a class="code" href="class_video_source.html" title="Base class for different video source implementations.">VideoSource</a>* <a class="code" href="class_video_source.html#a7dcbcf758710a1ce55b0471077fe9111" title="Returns the correct VideoSource subclass for use on the current platform.">newVideoSource</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_video_source.html#a8eb957864ca6d7c17532a7a5926024d2">~VideoSource</a>();</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#afdcbad266f06a6ee07ecb8ce2873e871">getError</a>();</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#a8936c5ae65f673316a994e97c00caf82" title="Returns true if the video source is open.">isOpen</a>();</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#a00107388291e281660e316699f699e47" title="Returns true if the video source is open and ready to be queried.">isRunning</a>();</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_video_source.html#a8c08a6152d930c5504444e13e6c12b11" title="Sets initial parameters which will be used when the video source  is opened.">configure</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* vconf, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaName, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaBuff, <span class="keywordtype">size_t</span> cparaBuffLen);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        ARParamLT* <a class="code" href="class_video_source.html#a4cb10a2276edfe49376ac666a05f1f3c" title="Returns the camera parameters for the video source.">getCameraParameters</a>();</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#ac59ab12ce7c377df421e8c4d80e6f013" title="Returns the width of the video in pixels.">getVideoWidth</a>();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#acb3abb2d4c5a9b5c1430ac4a93e41df6" title="Returns the height of the video in pixels.">getVideoHeight</a>();</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        AR_PIXEL_FORMAT <a class="code" href="class_video_source.html#a259eb37d6fc60aafb18f5f4343c7f445" title="Returns the pixel format of the video.">getPixelFormat</a>();</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_video_source.html#afb198b8fd8c0fb9556f37c70c0874f62" title="Returns the name of this video source variation.">getName</a>() = 0;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#af4ae0ead39c7893fbccb6260f0cad0cc" title="Opens the video source.">open</a>() = 0;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        </div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#a9bd5b94065f68293065275f371029fb1" title="Closes the video source.">close</a>() = 0;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#adff6ccfd9f07c83094abbfa1d580db78" title="Asks the video source to capture a frame.">captureFrame</a>() = 0;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        ARUint8* <a class="code" href="class_video_source.html#a4aa1c837e84952450cf330d8dba86bfa" title="Returns the current frame.">getFrame</a>();</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_video_source.html#aa99b09f155bf7db297be0262950e131d" title="Returns the current frame stamp.">getFrameStamp</a>();</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#aa2b41d0ac135213d868f4491b33d3e1a" title="Populates the provided color buffer with the current video frame.">updateTexture</a>(<a class="code" href="struct_color.html" title="Simple color representation using four float values.">Color</a>* buffer);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#ab3e908bae92d2b6573a1a82391c06600">fastPath</a>();</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_video_source.html#a664915a2d8a52c5cfb68a6d6fbf91ab4">updateTexture32</a>(uint32_t *buffer);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#ifndef _WINRT</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_video_source.html#a3215ae64e2830ee7b6a54f880d4ef863" title="Updates the specified OpenGL texture with the current video frame.">updateTextureGL</a>(<span class="keywordtype">int</span> textureID);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor"></span>};</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">#endif // !VIDEOSOURCE_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 23 2016 17:24:25 for ARWrapper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
